import request from '@/utils/request'

// 查询水质统计列表
export function listWaterQuality(query) {
  return request({
    url: '/iot/WaterQuality/list',
    method: 'get',
    params: query
  })
}
export function alllList(query) {
  return request({
    url: '/iot/WaterQuality/alllList',
    method: 'get',
    params: query
  })
}

// 查询水质统计详细
export function getWaterQuality(waterQualityId) {
  return request({
    url: '/iot/WaterQuality/' + waterQualityId,
    method: 'get'
  })
}

// 新增水质统计
export function addWaterQuality(data) {
  return request({
    url: '/iot/WaterQuality',
    method: 'post',
    data: data
  })
}

// 修改水质统计
export function updateWaterQuality(data) {
  return request({
    url: '/iot/WaterQuality',
    method: 'put',
    data: data
  })
}

// 删除水质统计
export function delWaterQuality(waterQualityId) {
  return request({
    url: '/iot/WaterQuality/' + waterQualityId,
    method: 'delete'
  })
}
